<template>
    <el-table-column v-bind="$attrs" :class-name="className">
        <template #default="scope">
            {{ cal(scope.row[attrs.prop]) }}
        </template>
    </el-table-column>
</template>

<script setup>
import { ref, useAttrs } from 'vue';
import { getLpClassName } from '../../utils/help';

let className = ref('')
className.value = 'lpgt99-cell'

const attrs = useAttrs()
const cal = (value) => {
    if (!value) {
        return value
    }
    console.log(value)
    console.log(getLpClassName(value))
    className.value = getLpClassName(value)
    return value
}

</script>
